//
//  HRCommonTool.swift
//  weiBo
//
//  Created by helong on 16/7/12.
//  Copyright © 2016年 helong. All rights reserved.
//

import UIKit
//  表情按钮的通知名
let EmotionSelectedNotification = "EmotionSelectedNotification"
// 用户登陆之后跳转到欢迎页面,然后跳转到主页面时,设置跟控制器的通知名
let switchControllerNotificationName: String = "switchControllerNotificationName"
let HomePageFontSize:CGFloat = 15
 // MARK: - 随机颜色
func randomColor() -> UIColor{
    let redValue = CGFloat(arc4random_uniform(255)) / 255
    let greenValue = CGFloat(arc4random_uniform(255)) / 255
    let blueValue = CGFloat(arc4random_uniform(255)) / 255
    return UIColor(red: redValue, green: greenValue, blue: blueValue, alpha: 1)
}
 // MARK: - 屏幕宽度

func screenWidth() -> CGFloat{
    return UIScreen.mainScreen().bounds.size.width
}
func screenHeight() -> CGFloat{
    return UIScreen.mainScreen().bounds.size.height
}
